#![allow(unused_imports)]
#![allow(warnings)]
#![allow(dead_code)]
#![allow(unused_variables)]
#![allow(unused_must_use)]
#![allow(non_snake_case)]
#[allow(non_camel_case_types)]
pub mod option_price;
pub mod tools;
pub mod stochastics;
use anyhow::Result;
use option_price::baw;
use option_price::binomial_tree;
use option_price::bsm;
use option_price::sabr;

fn main() -> Result<()> {
    // let pname = "交易组合22";
    // let b = api::cpt_fut_res(pname, "2024-05-01").await?;
    // println!("final res=={:?}", b);

    //     隐含波动率 0.40023437500000114
    // 自己的隐含波动率 0.3991922069212884
    // price== 5.573590214040408
    // delta 0.48038444793069934
    // gamma 0.025662528701720876
    // vega 0.18763394686193602

    // theta -0.19362891733223875
    // rho 0.04623325202575458       d1  -0.048936019788578755

    Ok(())
}
